package com.washmadam.service.service.communicate.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.washmadam.service.db.dao.CustomerOrderCommunicateMapper;
import com.washmadam.service.db.dto.CustomerOrderCommunicate;
import com.washmadam.service.service.communicate.CustomerOrderCommunicateOperateService;

import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class CustomerOrderCommunicateOperateServiceImpl implements CustomerOrderCommunicateOperateService {
	@Autowired
	private CustomerOrderCommunicateMapper customerOrderCommunicateMapper;

	@Override
	public void saveOrUpdateCustomerOrderCommunicate(CustomerOrderCommunicate requestParam) {
		if (requestParam.getId() == null) {
			customerOrderCommunicateMapper.insertSelective(requestParam);
			return;
		}
		customerOrderCommunicateMapper.updateByPrimaryKeySelective(requestParam);
	}

}
